"""
大屏相关
"""
from django.views.decorators.clickjacking import xframe_options_sameorigin
from django.http import JsonResponse
from django.shortcuts import render, HttpResponse, redirect

""" 大屏1 """
def screen1_index(request):
    return render(request, 'web/screen1/index.html')

""" 大屏2 --> index """
def screen2_index(request):
    return render(request, 'web/screen2/index.html')

""" 大屏2 --> analysis """
def screen2_analysis(request):
    return render(request, 'web/screen2/analysis.html')

""" 大屏2 --> people """
def screen2_people(request):
    return render(request, 'web/screen2/people.html')

""" 大屏2 --> traffic """
def screen2_traffic(request):
    return render(request, 'web/screen2/traffic.html')

""" 大屏2 --> activity """
def screen2_activity(request):
    return render(request, 'web/screen2/activity.html')

""" 大屏3 --> index """
def screen3_index(request):
    return render(request, 'web/screen3/index.html')

""" 大屏4 --> index """
def screen4_index(request):
    return render(request, 'web/screen4/index.html')

""" 大屏4 --> car """
@xframe_options_sameorigin  # 允许同域名网站使用frame展示
def screen4_car(request):
    return render(request, 'web/screen4/car.html')

""" 大屏4 --> carContrl """
@xframe_options_sameorigin
def screen4_carContrl(request):
    return render(request, 'web/screen4/carContrl.html')

""" 大屏4 --> carTail """
@xframe_options_sameorigin
def screen4_carTail(request):
    return render(request, 'web/screen4/carTail.html')

""" 大屏4 --> correctSpecial_analysis """
@xframe_options_sameorigin
def screen4_correctSpecial_analysis(request):
    return render(request, 'web/screen4/correctSpecial_analysis.html')

""" 大屏4 --> validate """
@xframe_options_sameorigin
def screen4_validate(request):
    return render(request, 'web/screen4/validate.html')